# Maintainer: Morten Linderud <foxboron@archlinux.org>
# Contributor: Eric Bélanger <eric@archlinux.org>

pkgname=python-nbxmpp
pkgdesc="A Python library to use Jabber/XMPP networks in a non-blocking way"
pkgver=4.2.2
pkgrel=2
arch=(any)
url="https://dev.gajim.org/gajim/python-nbxmpp/"
license=(GPL3)
depends=(libsoup3 python-gobject python-idna python-precis_i18n)
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
source=("https://dev.gajim.org/gajim/python-nbxmpp/-/archive/$pkgver/python-nbxmpp-$pkgver.tar.gz")
sha256sums=('4beb945b0d4109b216c3def38157ab6948038d03761dcda44bf02aca79f81b19')
b2sums=('25af88fd0ec3aeaac31013df3c81fe6b90a76e8d56ca2f121414dad6eecfae03d47f4b743f39ffa02d4418e0221c238912eec21fa418e335d48bb7491fded9b0')

build() {
  cd $pkgname-$pkgver
  python -m build --wheel --no-isolation
}

package() {
  cd $pkgname-$pkgver
  python -m installer --destdir="$pkgdir" dist/*.whl
}
